package com.atguigu.day22.work;

import org.junit.Test;

import java.io.File;
import java.io.IOException;

public class Work1 {
    @Test
    public void w1() throws IOException {
        File f1=new File("d:/testIO");
        f1.mkdir();
        File f2=new File("d:/testIO/1.txt");
        f2.createNewFile();
    }
    @Test
    public void w2() throws IOException {
        File f1=new File("testIO");
        f1.mkdir();
        File f2=new File("testIO/1.txt");
        f2.createNewFile();
    }

}
